package com.easyaop.test.core.entity;

/**
 * @author lipan
 * @since 2025-01-19
 */
public class Bean {
    private Long id;

    private String name;

    protected String proName;

    protected String __proName;

    protected static String proStaticName;

    protected static final String constantName = "constantName";

    protected int num;

    public void setId(Long id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        super.toString();
        return name;
    }

    public final String getFinalName() {
        return name;
    }

    public static int add(int num1, int num2) {
        return num1 + num2;
    }

    private void __pr_m1() {
        System.out.println("invoke __private method");
    }

    protected final void __pro_m2() {
        System.out.println("invoke __protected method");
    }

    void __def_m3() {
        System.out.println("invoke __default method");
    }

    private static void __pr_sm1() {
        System.out.println("invoke static __private method");
    }

    protected final static void __pro_sm2() {
        System.out.println("invoke static __protected method");
    }

    static void __def_sm3() {
        System.out.println("invoke static __default method");
    }
}
